-
Notifications
You must be signed in to change notification settings - Fork 53
fix: staking optimization v1.6.x patch #779
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: staking optimization v1.6.x patch #779
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## release/v0.22.x-cronosv1.6-optstaking #779 +/- ##
=========================================================================
+ Coverage 46.75% 46.88% +0.12%
=========================================================================
Files 187 189 +2
Lines 15221 15275 +54
=========================================================================
+ Hits 7117 7162 +45
- Misses 7316 7325 +9
Partials 788 788
🚀 New features to boost your workflow:
|
2cbdd91 to
c404b83
Compare
c404b83 to
a64e281
Compare
d2d7d02 to
b338cac
Compare
JayT106
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
a2d9338 to
7e9c1c2
Compare
7e9c1c2 to
5ac5695
Compare
a7e326e to
5ac5695
Compare
5ac5695 to
ec97211
Compare
ec97211 to
618ed05
Compare
618ed05 to
867d593
Compare
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
867d593 to
727854b
Compare
727854b to
2498a08
Compare
12d426c
into
crypto-org-chain:release/v0.22.x-cronosv1.6-optstaking
Description
This patch introduces a fixed gas consumption decorator in the antehandler to standardize gas usage for whitelisted messages.
Currently, only staking-related messages are included in the whitelist.
Purpose
This ensures consistent gas consumption across all nodes, regardless of variations in staking cache size.
By normalizing gas usage, it prevents potential AppHash mismatches caused by node-specific performance differences.
Implementation Details
For example, the mean gas used for
MsgUndelegatecan be referenced here:Mainnet reference
This change works in tandem with the staking cache introduced in the Cosmos SDK:
crypto-org-chain/cosmos-sdk#1733
For contributor use:
docs/) or specification (x/<module>/spec/)godoccomments.Unreleasedsection inCHANGELOG.mdFiles changedin the Github PR explorerFor admin use:
WIP,R4R,docs, etc)